import numpy as np
import pandas as pd
import os,sys
import matplotlib.pyplot as plt
import seaborn as sns
from pathlib import Path
plt.rcParams.update({'font.size': 28})
plt.rcParams['figure.figsize'] = (30, 15)
This journal documents the manipulation of PV installation data for the USA. This covers selection of data, and weighting by marketshare.
sns.set_style("white")
plt.rcParams.update({'font.size': 28})
plt.rcParams['figure.figsize'] = (30, 15)
cwd = os.getcwd() #grabs current working directory
supportMatfolder = str(Path().resolve().parent.parent.parent / 'PV_ICE' / 'baselines' / 'SupportingMaterial')
baselinesFolder = str(Path().resolve().parent.parent.parent / 'PV_ICE' / 'baselines')
cwd = os.getcwd() #grabs current working directory
df_installs_raw = pd.read_csv(cwd+"/../../../PV_ICE/baselines/SupportingMaterial/PVInstalls_USA_AllSources.csv", index_col='Year')
df_installs_raw
| Wood Mackenzie Power & Renewables, US PV Forecasts (2021 year in review) | K. Bolcar and K. Ardani, “National Survey Report of PV Power Applications in the United States 2010,” IEA-PVPS, National Survey T1-19:2010, 2010. [Online]. Table 3. Available: https://iea-pvps.org/national-survey-reports/. | F. H. Morse, “IEA PVPS Task 1 1993,” IEA-PVPS, IEA PVPS T1:1993, Mar. 1995. Accessed: Aug. 13, 2020. [Online]. Available: https://iea-pvps.org/wp-content/uploads/2020/01/tr_1993.pdf. | M. Bolinger, J. Seel, and D. Robson, “Utility-Scale Solar 2019,” LBNL, Dec. 2019. Accessed: Aug. 13, 2020. [Online]. Available: https://emp.lbl.gov/sites/default/files/lbnl_utility_scale_solar_2019_edition_final.pdf. | “IRENA RE Time Series,” Tableau Software. https://public.tableau.com/views/IRENARETimeSeries/Charts?:embed=y&:showVizHome=no&publish=yes&:toolbar=no (accessed Dec. 02, 2020). | “U.S. Solar Market Insight Report: 2012 Year in Review Full Report,” Greentech Media Inc. & SEIA, 2013. | M. Bolinger, J. Seel, C. Warner, and D. Robson, “Utility-Scale Solar, 2021 Edition,” p. 62, 2021. | |
|---|---|---|---|---|---|---|---|
| Year | |||||||
| 1995 | NaN | NaN | 76.5 | NaN | NaN | NaN | NaN |
| 1996 | NaN | 9.7 | NaN | NaN | NaN | NaN | NaN |
| 1997 | NaN | 11.7 | NaN | NaN | NaN | NaN | NaN |
| 1998 | NaN | 11.9 | NaN | NaN | NaN | NaN | NaN |
| 1999 | NaN | 17.2 | NaN | NaN | NaN | NaN | NaN |
| 2000 | NaN | 21.5 | NaN | NaN | NaN | 4.0 | NaN |
| 2001 | NaN | 29.0 | NaN | NaN | 37.0 | 11.0 | NaN |
| 2002 | NaN | 44.4 | NaN | NaN | 42.0 | 23.0 | NaN |
| 2003 | NaN | 63.0 | NaN | NaN | 38.0 | 45.0 | NaN |
| 2004 | NaN | 100.8 | NaN | NaN | 70.0 | 58.0 | NaN |
| 2005 | NaN | 103.0 | NaN | NaN | 130.0 | 79.0 | NaN |
| 2006 | NaN | 4.0 | NaN | NaN | 205.0 | 105.0 | NaN |
| 2007 | NaN | 347.5 | NaN | 160.0 | 276.0 | 160.0 | 160.000000 |
| 2008 | NaN | 338.0 | NaN | 289.0 | 179.0 | 298.0 | 288.500000 |
| 2009 | NaN | 464.5 | NaN | 435.0 | 461.0 | 435.0 | 434.500000 |
| 2010 | 848.588 | 916.0 | NaN | 850.0 | 1295.0 | 852.0 | 848.837961 |
| 2011 | 1920.510 | NaN | NaN | 1921.0 | 2263.0 | 1919.0 | 1940.737204 |
| 2012 | 3373.427 | NaN | NaN | 3374.0 | 2965.0 | 3369.0 | 3373.855007 |
| 2013 | 4765.802 | NaN | NaN | 4766.0 | 3622.0 | 4751.0 | 4765.802030 |
| 2014 | 6243.873 | NaN | NaN | 6244.0 | 4225.0 | NaN | 6244.849569 |
| 2015 | 7500.642 | NaN | NaN | 7500.0 | 5700.0 | NaN | 7509.057880 |
| 2016 | 15095.640 | NaN | NaN | 15152.0 | 11274.0 | NaN | 15103.944010 |
| 2017 | 10969.090 | NaN | NaN | 10845.0 | 8399.0 | NaN | 11080.064420 |
| 2018 | 10740.380 | NaN | NaN | 10618.0 | 10068.5 | NaN | 10754.756670 |
| 2019 | 13385.900 | NaN | NaN | NaN | 7498.0 | NaN | 13484.156600 |
| 2020 | 19221.000 | NaN | NaN | NaN | 14890.0 | NaN | 19221.113450 |
| 2021 | 23565.000 | NaN | NaN | NaN | NaN | NaN | NaN |
| 2022 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2023 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2024 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2025 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2026 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2027 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2028 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2029 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2030 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2031 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2032 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2033 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2034 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2035 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2036 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2037 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2038 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2039 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2040 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2041 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2042 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2043 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2044 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2045 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2046 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2047 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2048 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2049 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
| 2050 | NaN | NaN | NaN | NaN | NaN | NaN | NaN |
sources = df_installs_raw.columns
#print(len(sources))
plt.plot(df_installs_raw.index,df_installs_raw[sources[0]],lw=4,marker='*',label=sources[0])
plt.plot(df_installs_raw.index,df_installs_raw[sources[1]],lw=3,marker='o',label=sources[1])
plt.plot(df_installs_raw.index,df_installs_raw[sources[2]],lw=2,marker='o',label=sources[2])
plt.plot(df_installs_raw.index,df_installs_raw[sources[3]],lw=2,marker='o',label=sources[3])
plt.plot(df_installs_raw.index,df_installs_raw[sources[4]],lw=2,marker='o',label=sources[4])
plt.plot(df_installs_raw.index,df_installs_raw[sources[5]],lw=2,marker='o',label=sources[5])
plt.yscale('log')
plt.ylabel('PV Installed (MW)')
plt.legend(bbox_to_anchor=(0, 1, 1, 0), loc="lower left")
#plt.plot(df_installs_raw, marker='o')
<matplotlib.legend.Legend at 0x1356bd600>
The IRENA is consistently lower than the other sources from 2012 through the present. Given that all other sources are in agreement, we will select one of these data sets to use for installation data, rather than IRENA. In this case, we will select the Wood Mackenzie Power & Renewables quarterly reports and PV forecasts from 2010 through 2019.
installs_2010_2019 = df_installs_raw.loc[(df_installs_raw.index>=2010)]
installs_recent = pd.DataFrame(installs_2010_2019[sources[0]])
installs_recent.columns = ['installed_pv_MW']
print(installs_recent)
installed_pv_MW Year 2010 848.588 2011 1920.510 2012 3373.427 2013 4765.802 2014 6243.873 2015 7500.642 2016 15095.640 2017 10969.090 2018 10740.380 2019 13385.900 2020 19221.000 2021 23565.000 2022 NaN 2023 NaN 2024 NaN 2025 NaN 2026 NaN 2027 NaN 2028 NaN 2029 NaN 2030 NaN 2031 NaN 2032 NaN 2033 NaN 2034 NaN 2035 NaN 2036 NaN 2037 NaN 2038 NaN 2039 NaN 2040 NaN 2041 NaN 2042 NaN 2043 NaN 2044 NaN 2045 NaN 2046 NaN 2047 NaN 2048 NaN 2049 NaN 2050 NaN
Only 1 dataset exists from 1995 to 2000, from IEA PVPS 2010 National Survey report. This seems to track reasonably well with Wood Mackenzie data between 2008 and 2010. Therefore, this will be used up to 2010.
installs_upto2010 = df_installs_raw.loc[(df_installs_raw.index<2010)]
installs_old = pd.DataFrame(installs_upto2010[sources[1]])
installs_old.columns = ['installed_pv_MW']
print(installs_old)
installed_pv_MW Year 1995 NaN 1996 9.7 1997 11.7 1998 11.9 1999 17.2 2000 21.5 2001 29.0 2002 44.4 2003 63.0 2004 100.8 2005 103.0 2006 4.0 2007 347.5 2008 338.0 2009 464.5
However, there are 2 problems with this data. 1) There is an error in the original published table, such that it appears only 4 MW of PV were installed in 2006. To address this problem we will utilize SEIA & GTM/Wood Mackenzie data for 2006. 2) Due to the way the original data was presented, we had to calculate the difference between years to capture installed PV data, meaning that we don't have data for 1995. To address this problem, we will fill in the data point from “IEA PVPS Task 1 1997,” IEA-PVPS, IEA PVPS T1:1997, Mar. 1997. Accessed: Aug. 13, 2020. [Online]. Available: https://iea-pvps.org/wp-content/uploads/2020/01/tr_1995_01.pdf, which specifies the added PV in 1995 in the US (Table 2.2).
#dealing with 2006 error
installs_old['installed_pv_MW'][2006] = df_installs_raw[sources[5]][2006]
#dealing with 1995 error
installs_old['installed_pv_MW'][1995] = 12.5 #MW
#print(installs_old)
installs = pd.concat([installs_old,installs_recent])
plt.plot(installs)
plt.yscale('log')
plt.title('Installations of PV in the USA (MW) since 1995')
Text(0.5, 1.0, 'Installations of PV in the USA (MW) since 1995')
In addition to compiling a single installation record for 1995 through the present, this data is total cumulative, but the tool it currently considering silicon technology only. Especially in the United States, where First Solar holds significant marketshare, this distinction is important. Currently, we also do not feel it is critical track circular economy of CdTe given that First Solar already recycles all their panels.
cwd = os.getcwd() #grabs current working directory
df_raw_mrktshr_siVtf = pd.read_csv(cwd+"/../../../PV_ICE/baselines/SupportingMaterial/MarketShare_US_siliconVSthinfilm.csv", index_col='Year')
refs = df_raw_mrktshr_siVtf.columns
plt.plot(df_raw_mrktshr_siVtf.index,df_raw_mrktshr_siVtf[refs[0]],marker='o',label=refs[0])
plt.plot(df_raw_mrktshr_siVtf.index,df_raw_mrktshr_siVtf[refs[1]],marker='o',label=refs[1])
plt.plot(df_raw_mrktshr_siVtf.index,df_raw_mrktshr_siVtf[refs[2]],marker='o',label=refs[2])
plt.plot(df_raw_mrktshr_siVtf.index,df_raw_mrktshr_siVtf[refs[3]],marker='o',label=refs[3])
plt.legend(bbox_to_anchor=(0, 1, 1, 0), loc="lower left")
plt.ylim(0,1.1)
(0.0, 1.1)
Since there is no overlap among these resources, we will simply consolidate into a single historical marketshare.
Mints does have marketshare data overlapping the late 2000s to the present, however, this data is based on MFG capcity and shipments at a global scale. This PV installation baseline is for the USA, and is focused on the install side, rather than the MFG capacity side.
#bfill function "collapses" values from all columns into a single column, then make a df of only that data
df_raw_mrktshr_siVtf['All_Marketshare'] = pd.to_numeric(df_raw_mrktshr_siVtf[refs].bfill(axis=1).iloc[:, 0], errors='coerce')
df_mrktshr_us = pd.DataFrame(df_raw_mrktshr_siVtf['All_Marketshare'])
#print( df_mrktshr_us)
df_mrktshr_us_si_complete = df_mrktshr_us.interpolate(limit_area='inside')
plt.plot(df_mrktshr_us_si_complete)
plt.title('Marketshare of Silicon PV installed since 1995')
df_mrktshr_us_si_complete.to_csv(cwd+'/../../../PV_ICE/baselines/SupportingMaterial/output_USA_Si_marketshare.csv', index=True)
Now we have a marketshare percentage of silicon for 1995 through 2018. We will multiply the PV installs by this silicon marketshare to get the MW of silicon PV installed in the US since 1995.
dfs = [installs,df_mrktshr_us_si_complete]
df = pd.concat(dfs, axis=1, join='inner')
df_clean = df.dropna()
us_si_installs = df_clean.agg('prod', axis='columns')
#print(us_si_installs)
plt.rcParams.update({'font.size': 18})
plt.rcParams['figure.figsize'] = (15, 8)
plt.plot(installs, label='All USA PV Installed', color='orange')
plt.plot(us_si_installs, label='Silicon PV Installed, USA', color='blue')
plt.yscale('log')
plt.title('Silicon PV Installations (MW) in the USA, 1995 through 2018')
plt.legend()
<matplotlib.legend.Legend at 0x135c90e50>
us_si_installs.to_csv(cwd+'/../../../PV_ICE/baselines/SupportingMaterial/output_USA_SiPV_installs.csv', index=True)
installs.to_csv(cwd+'/../../../PV_ICE/baselines/SupportingMaterial/output_USA_allPV_installs.csv', index=True)
This data only takes installes through 2019. For the remaining years through 2050, a compound annual growth rate of 8.9% was used to predict increasing installations. This compound annual growth rate was sourced from IRENA 2016 EoL Mangement Report.
us_si_installed = pd.DataFrame(us_si_installs, columns=['installed_pv_MW'])
us_tf_installed = installs-us_si_installed
plt.plot(us_tf_installed)
#plt.yscale('log')
plt.title('Thin Film PV Installations (MW) in the USA, 1995 through 2018')
Text(0.5, 1.0, 'Thin Film PV Installations (MW) in the USA, 1995 through 2018')
us_tf_installed.to_csv(cwd+'/../../../PV_ICE/baselines/SupportingMaterial/output_USA_TFPV_installs.csv', index=True)
us_tf_installed.to_csv(cwd+'/../../../PV_ICE/baselines/SupportingMaterial/output_USA_TFPV_installs.csv', index=True)
The sources used to create this baseline pre-2010 are:
Note that data from these sources were digitized from graphs, so there is approximately a +/- 10 MWdc error (based on comparison to charted data within the report).
From 2010 forward we will use Wood Mackenzie Data.